package com.uuah.server.config.spring.parsers.processors;

import org.w3c.dom.Element;
import org.springframework.beans.factory.xml.ParserContext;

import com.uuah.server.config.spring.parsers.PostProcessor;
import com.uuah.server.config.spring.parsers.assembly.IBeanAssembler;

public class ConstructorReference implements PostProcessor {

	public String reference;

	public ConstructorReference(String reference) {
		this.reference = reference;
	}

	public void postProcess(ParserContext unused, IBeanAssembler assembler,
			Element element) {
		assembler.getBean().addConstructorArgReference(reference);
	}

}
